<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" session="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login - Mifos Spike</title>
</head>

<body onload='document.loginForm.j_username.focus();'>

	<form id="loginForm" name="loginForm" action="j_spring_security_check" method="post">
	<c:if test="${not empty param.authfailed}">
	<span id="infomessage" class="errormessage" ><fmt:message key="login.failure.text" />: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>.</span>
	</c:if>

	<table>
		<tr><td><fmt:message key="login.label.username" /></td><td><input id="usernameField" type="text" name="j_username" value="<c:out value="${SPRING_SECURITY_LAST_USERNAME}"/>"/></td></tr>
		<tr><td><fmt:message key="login.label.password" /></td><td><input id="passwordField" type="password" name="j_password" value="" /></td></tr>

		<tr><td colspan="2" align="right"><input type="submit" value='<fmt:message key="login.submit" />' /></td></tr>
	</table>
</form>

</body>

</html>